import numpy as np

if __name__ == "__main__":
    A = np.array([[1,2],[3,4]])

    # print(A)

    # print(A.shape)

    # print(A.T)

    # print(A[0])

    # print(A[:,0])

    B = np.array([[5,6],[7,8],[9,10]])

    # print(A+B)
    # print(A-B)
    # print(10*A)

    # print(A*B)

    # print(A.dot(B))

    # p = np.array([10,100])

    # print(A.dot(p))

    I = np.identity(2)

    print(I)

    # 逆矩阵
    invA = np.linalg.inv(A)

    print(invA)

    print(A.dot(invA))

    pass